import axios from "axios";
import instanceUtil from "./instance";

const instanceBase = axios.create();

instanceBase.defaults.baseURL = "/api"

export const baseRequest = instanceUtil(instanceBase)
  .interceptorsRequestUse()
  .interceptorsResponseUse()
  .injectionRequestUse();


const instanceSug = axios.create();

instanceSug.defaults.baseURL = "/sug"

export const sugRequest = instanceUtil(instanceSug)
  .interceptorsRequestUse()
  .interceptorsResponseUse()
  .injectionRequestUse();

